package com.mixoft.TestApp;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class GenericFragmentInflator extends Fragment {
	
	// The resource to inflate
	private int pageResource;
	
	public void setPage(int page)
	{
		this.pageResource = page;
	}
	
	/** Called when the activity is first created. */
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
		
		View view = inflater.inflate(this.pageResource, container, false);
	    
	    return view;
	}
	
}
